package com.mock.model.vo;

import com.mock.enums.GenderEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "Student对象", description = "学生响应实体")
public class StudentVO implements Serializable {

    @ApiModelProperty("学生ID")
    private Long id;

    @ApiModelProperty(value = "学生姓名", required = true)
    private String name;

    @ApiModelProperty(value = "学生年龄", required = true)
    private int age;

    @ApiModelProperty(value = "学生性别", required = true)
    private GenderEnum gender;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
